<!DOCTYPE html>
<html>

<head>
  <title>
    <%= title %>
  </title>
  <link rel='stylesheet' href='/stylesheets/style.css' />
  <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
  <style>
    * {
      padding: 0;
      margin: 0;
      box-sizing: border-box;
    }

    .form-container {
      width: 500px;
      height: 500px;
      margin: 200px auto;
      border-radius: 10px;
      background-color: #f2f2f2;
      padding: 20px;
    }

    h1 {
      text-align: center;
      margin-top: 100px;
    }

    label {
      display: flex;
      margin-top: 20px;
      justify-content: space-between;
    }

    .label-text {
      font-size: 18px;
      font-weight: bold;
      line-height: 30px;
    }


    input[type="text"],
    input[type="password"],
    input[type="email"] {
      width: 80%;
      height: 30px;
      padding-left: 10px;
      border-radius: 5px;
      margin-left: 10px;
    }

    button {
      width: 100%;
      height: 40px;
      background-color: #4CAF50;
      color: white;
      border: none;
      border-radius: 5px;
      margin-top: 20px;
      cursor: pointer;
    }


    table {
      margin-top: 50px;
      border-collapse: collapse;
      width: 100%;
    }

    th,
    td {
      text-align: center;
      padding: 10px;
      border: 1px solid #ddd;
    }

    th {
      background-color: #f2f2f2;
    }

    .file {
      width: 0.1px;
      /* 避免设置为0px影响键盘导航 */
      height: 0.1px;
      opacity: 0;
      /* 完全透明 */
      overflow: hidden;
      position: absolute;
      /* 脱离文档流 */
      z-index: -1;
      /* 防止遮挡其他元素 */
    }

    .custom-btn {
      padding: 12px 24px;
      background: #007bff;
      color: white;
      border-radius: 4px;
      cursor: pointer;
      transition: background 0.3s;
    }

    .custom-btn:hover {
      background: #0056b3;
    }

    .custom-btn::before {
      content: "\f07c";
      /* Font Awesome 图标 */
      font-family: "Font Awesome 5 Free";
      margin-right: 8px;
    }

    img {
      width: 100px;
      height: 100px;
    }
  </style>
</head>

<body>
  <div class="center">
    <div class="top">
      <div class="left">
        <label>
          <p>账号:</p><input id="username" class="username" type="text">
        </label>
        <label>
          <p>密码:</p><input id="password" class="password" type="text">
        </label>
        <label>
          <p>邮箱:</p>
          <input id="email" class="email" type="text">
        </label>
        <label>
          <input type="file" id="file-input" accept="image/*">
          <button onclick="uploadImage()">上传</button>
        </label>
      </div>
      <div class="right">
        <button class="but-add">添加</button>
        <button class="but-out">跳出</button>
      </div>
    </div>
    <div class="bottom">
      <table>
        <thead>
          <tr>
            <th>用户名</th>
            <th>密码</th>
            <th>邮箱</th>
            <th>头像</th>

            <th>操作</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody>
        </tbody>
      </table>
    </div>


  </div>
  <script src='../javascripts/index.js'></script>
</body>

</html>